//
//  BCPaysuccesView.m
//  BangcaiBuy
//
//  Created by lsy on 16/6/22.
//  Copyright © 2016年 BCB. All rights reserved.
//

#import "BCPaysuccesView.h"

@interface BCPaysuccesView ()
{
    UILabel *metionLab;
    UILabel *numLab;
    UILabel *priceLab;
   
}

@end

@implementation BCPaysuccesView

- (void)createView
{
    metionLab = [[UILabel alloc]init];
    metionLab.text = @"支付成功!";
    metionLab.textAlignment = NSTextAlignmentCenter;
    metionLab.font = [UIFont boldSystemFontOfSize:36];
    metionLab.textColor = [UIColor colorWithRed:0.226  green:0.652  blue:0.374 alpha:1];
    numLab = [[UILabel alloc] init];
    numLab.text = @"订单编号";
    priceLab = [[UILabel alloc] init];
    priceLab.text = @"付款金额";
    
    [self addSubview:metionLab];
    [self addSubview:numLab];
    [self addSubview:priceLab];
  
    
    [metionLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.centerY.mas_equalTo(self.mas_top).with.offset(164);
        make.height.mas_equalTo(50);
        make.width.mas_equalTo(SCREEN_WIDTH);
        
    }];
    [numLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(SCREEN_WIDTH);
        make.height.mas_equalTo(30);
        make.top.mas_equalTo(200);
        make.left.mas_equalTo(0);
    }];
    
    [priceLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(SCREEN_WIDTH);
        make.height.mas_equalTo(30);
        make.top.mas_equalTo(numLab.mas_bottom);
        make.left.mas_equalTo(0);
        
        
    }];
}

@end
